package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 员工手册规则对象 yg_rule
 * 
 * @author ruoyi
 * @date 2022-12-01
 */
public class YgRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long ruleId;

    /** 规则名称 */
    @Excel(name = "规则名称")
    private String ruleName;

    /** 分数 */
    @Excel(name = "分数")
    private Long ruleScore;

    /** 加减分状态（1：减分，2：加分） */
    @Excel(name = "加减分状态", readConverterExp = "1=：减分，2：加分")
    private Integer ruleState;

    public void setRuleId(Long ruleId) 
    {
        this.ruleId = ruleId;
    }

    public Long getRuleId() 
    {
        return ruleId;
    }
    public void setRuleName(String ruleName) 
    {
        this.ruleName = ruleName;
    }

    public String getRuleName() 
    {
        return ruleName;
    }
    public void setRuleScore(Long ruleScore) 
    {
        this.ruleScore = ruleScore;
    }

    public Long getRuleScore() 
    {
        return ruleScore;
    }
    public void setRuleState(Integer ruleState) 
    {
        this.ruleState = ruleState;
    }

    public Integer getRuleState() 
    {
        return ruleState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ruleId", getRuleId())
            .append("ruleName", getRuleName())
            .append("ruleScore", getRuleScore())
            .append("ruleState", getRuleState())
            .toString();
    }
}
